#ifndef UDPCLIENT_H
#define UDPCLIENT_H

#include <QObject>

#include <QUdpSocket>
#include <QHostAddress>
#include <QDebug>

class UdpClient : public QObject
{
    Q_OBJECT
public:
    UdpClient(QObject *parent = nullptr) ;

    void sendDatagram(const QByteArray &data, const QHostAddress &address, quint16 port);

private:
    QUdpSocket *udpSocket;

};

#endif // UDPCLIENT_H
